package com.wzz.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wzz.pojo.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author DarkClown
 * @date 2024-08-12 10:40
 * @project_name day0812-month
 * @parem
 **/
@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {
    @Select("select * from goods g left join type t on g.t3 = tid left join text t2 on t2.gid = g.gid")
    Page<Goods> selectGoods(Page<Goods> page, QueryWrapper<Goods> queryWrapper);
}
